package br.com.fsa.aplication.Database;



import java.io.Serializable;
import java.util.List;
import java.util.Map;

import br.com.fsa.aplication.Exception.ConectionException;

public interface IDaoGenerico<T> {

   
    public Class<T> getObjectClass();

    public T save(T objeto) throws ConectionException;

    public void delete(T objeto) throws ConectionException;

    public List<T> list() throws ConectionException;

    public T getById(Serializable id) throws ConectionException;

    public List<T> consultaHQL(String consulta) throws ConectionException;
    
    public void update(T objeto);

}

